<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
</head>
<body>						
	<div role="tabpanel" class="tab-pane fade in active" id="all">
								<table class="table text-center">
									<tr>
										<th width="380">商品信息</th>
										<th width="85">单价</th>
										<th width="85">数量</th>
										<th width="120">实付款</th>
										<th width="120">交易状态</th>
										<th width="120">交易操作</th>
									</tr>
									<c:forEach items="${orderlist }" var="o"  varStatus="i" >
									<c:if test="${o.otuihuo!=3 }">
										<tr class="order-item">
											<td><label> <a href="udai_order_detail.html"
													class="num"> ${o.odate } 订单号: ${o.oid } </a>
													<div class="card">
														<div class="img">
															<img src="images/temp/${o.clothes.cimgurl }" alt=""
																class="cover">
														</div>
														<div class="name ep2">${o.clothes.cname }</div>
														<div class="format">颜色分类：${o.clothes.ccolor } 尺码：${o.clothes.csize } </div>
													</div>
											</label></td>
											<td>￥${o.clothes.cprice }</td>
											<td>${o.onum}</td>
											<td>￥${o.clothes.cprice*o.onum }<br> <span class="fz12 c6 text-nowrap">(含运费:
													¥0.00)</span></td>
											<c:if test="${o.opayed==0&&o.osend==0&&o.ostate==0 }">
											<td class="state"><a class="but c6">未付款</a>
											<a href="udai_order_detail.html" class="but c9">订单详情</a></td>
											<td class="order">
												<div class="del">
													<!-- <span class="glyphicon glyphicon-trash" aria-hidden="true"> </span> -->
												</div> <a href="javascript:;" class="but but-primary" onclick="queren(1,${o.oid })"  >立即付款</a>
												<!-- <a href="" class="but but-link">评价</a> --> <a href="javascript:;"
												class="but c3" onclick="queren(6,${o.oid })">取消订单</a>
											</td>
											</c:if>
											<c:if test="${o.opayed==1&&o.osend==0&&o.ostate==0&&o.otuihuo==0 }">
											<td class="state"><a class="but c6">已付款</a>
											<a href="udai_order_detail.html" class="but c9">订单详情</a></td>
											<td class="order">
												<div class="del">
													<!-- <span class="glyphicon glyphicon-trash" aria-hidden="true"></span> -->
												</div> <a href="javascript:;" class="but but-primary" onclick="queren(2,${o.oid })" >催促发货</a>
												<!-- <a href="" class="but but-link">评价</a> --> <a href="javascript:;"
												class="but c3" onclick="queren(5,${o.oid })">退款/退货</a>
											</td>
											</c:if>
											<c:if test="${o.opayed==1&&o.osend==0&&o.ostate==0&&o.otuihuo==1 }">
											<td class="state"><a class="but c6">已付款</a>
											<a href="udai_order_detail.html" class="but c9">订单详情</a></td>
											<td class="order">
												<div class="del">
													<!-- <span class="glyphicon glyphicon-trash" aria-hidden="true"></span> -->
												</div> <a href="javascript:;" class="but but-primary"  >等待商家确认</a>
												<!-- <a href="" class="but but-link">评价</a> --> <a href="javascript:;"
												class="but c3" >退款中</a>
											</td>
											</c:if>
											<c:if test="${o.opayed==1&&o.osend==0&&o.ostate==0&&o.otuihuo==2}">
											<td class="state"><a class="but c6">已付款</a>
											<a href="udai_order_detail.html" class="but c9">订单详情</a></td>
											<td class="order">
												<div class="del">
													<!-- <span class="glyphicon glyphicon-trash" aria-hidden="true"></span> -->
												</div> <a href="javascript:;" class="but but-primary"  >等待商家确认</a>
												<!-- <a href="" class="but but-link">评价</a> --> <a href="javascript:;"
												class="but c3" >退款中</a>
											</td>
											</c:if>
											<c:if test="${o.opayed==1&&o.osend==1&&o.ostate==0&&o.otuihuo==0 }">
											<td class="state"><a class="but c6">已付款</a>
											<a class="but c6">物流运输中...</a>
											<a href="udai_order_detail.html" class="but c9">订单详情</a></td>
											<td class="order">
												<div class="del">
													<!-- <span class="glyphicon glyphicon-trash" aria-hidden="true"></span> -->
												</div> <a href="javascript:;" class="but but-primary" onclick="queren(3,${o.oid })" >确认收货</a>
												<!-- <a href="" class="but but-link">评价</a> --> <a href="javascript:;"
												class="but c3" onclick="queren(5,${o.oid })">退款/退货</a>
											</td>
											</c:if>	
											<c:if test="${o.opayed==1&&o.osend==1&&o.ostate==0&&o.otuihuo==1 }">
											<td class="state"><a class="but c6">已付款</a>
											<a class="but c6">物流运输中...</a>
											<a href="udai_order_detail.html" class="but c9">订单详情</a>等待商家确认</td>
											<td class="order">
												<div class="del">
													<!-- <span class="glyphicon glyphicon-trash" aria-hidden="true"></span> -->
												</div> <a href="javascript:;" class="but but-primary" ></a>
												<!-- <a href="" class="but but-link">评价</a> --> <a href="javascript:;"
												class="but c3" >退款中</a>
											</td>
											</c:if>
											<c:if test="${o.opayed==1&&o.osend==1&&o.ostate==0&&o.otuihuo==2 }">
											<td class="state"><a class="but c6">已付款</a>
											<a class="but c6">物流运输中...</a>
											<a href="udai_order_detail.html" class="but c9">订单详情</a>等待商家确认</td>
											<td class="order">
												<div class="del">
													<!-- <span class="glyphicon glyphicon-trash" aria-hidden="true"></span> -->
												</div> <a href="javascript:;" class="but but-primary" ></a>
												<!-- <a href="" class="but but-link">评价</a> --> <a href="javascript:;"
												class="but c3" >退款中</a>
											</td>
											</c:if>
											<c:if test="${o.opayed==1&&o.osend==1&&o.ostate==1&&o.otuihuo==0 }">
											<td class="state"><a class="but c6">已付款</a>
											<a class="but c6">已收货</a>
											<a href="udai_order_detail.html" class="but c9">订单详情</a></td>
											<td class="order">
												<div class="del">
													<!-- <span class="glyphicon glyphicon-trash" aria-hidden="true"></span> -->
												</div> <a href="javascript:;" class="but but-primary" onclick="queren(4,${o.oid })" >评价</a>
												<!-- <a href="" class="but but-link">评价</a> --> <a  href="javascript:;"
												class="but c3"  onclick="queren(5,${o.oid })">退货/退款</a>
											</td>
											</c:if>	
											<c:if test="${o.opayed==1&&o.osend==1&&o.ostate==1&&o.otuihuo==1 }">
											<td class="state"><a class="but c6">已付款</a>
											<a class="but c6">已收货</a>
											<a href="udai_order_detail.html" class="but c9">订单详情</a></td>
											<td class="order">
												<div class="del">
													<!-- <span class="glyphicon glyphicon-trash" aria-hidden="true"></span> -->
												</div> <a href="javascript:;" class="but but-primary" onclick="queren(4,${o.oid })" >评价</a>
												<!-- <a href="" class="but but-link">评价</a> --> <a  href="javascript:;"
												class="but c3">退款中</a>
											</td>
											</c:if>
											<c:if test="${o.opayed==1&&o.osend==1&&o.ostate==1&&o.otuihuo==2 }">
											<td class="state"><a class="but c6">已付款</a>
											<a class="but c6">已收货</a>
											<a href="udai_order_detail.html" class="but c9">订单详情</a></td>
											<td class="order">
												<div class="del">
													<!-- <span class="glyphicon glyphicon-trash" aria-hidden="true"></span> -->
												</div> <a href="javascript:;" class="but but-primary" onclick="queren(4,${o.oid })" >评价</a>
												<!-- <a href="" class="but but-link">评价</a> --> <a  href="javascript:;"
												class="but c3">退款中</a>
											</td>
											</c:if>										 
										</tr>
										</c:if>
									</c:forEach>
								</table>
								
								<div class="page text-right clearfix" style="margin-top: 40px">
									<a class="disabled">上一页</a> <a class="select">1</a> <a href="">2</a>
									<a href="">3</a> <a class="" href="">下一页</a>
								</div>
							</div>
</body>
</html>